package com.migo.service.impl;

import com.migo.dao.DeviceRegisterDao;
import com.migo.entity.DeviceRegisterEntity;
import com.migo.service.DeviceRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("deviceRegisterService")
public class DeviceRegisterServiceImpl implements DeviceRegisterService {
	@Autowired
	private DeviceRegisterDao deviceRegisterDao;
	
	@Override
	public DeviceRegisterEntity queryObject(Integer id){
		return deviceRegisterDao.queryObject(id);
	}
	
	@Override
	public List<DeviceRegisterEntity> queryList(Map<String, Object> map){
		return deviceRegisterDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return deviceRegisterDao.queryTotal(map);
	}
	
	@Override
	public void save(DeviceRegisterEntity deviceRegister){
		deviceRegisterDao.save(deviceRegister);
	}
	
	@Override
	public void update(DeviceRegisterEntity deviceRegister){
		deviceRegisterDao.update(deviceRegister);
	}
	
	@Override
	public void delete(Integer id){
		deviceRegisterDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		deviceRegisterDao.deleteBatch(ids);
	}
	
}
